package com.orange.cloud.common.core.feign.user.api;


import com.orange.cloud.common.core.feign.user.pojo.evt.UserEvt;
import com.orange.cloud.common.core.feign.user.pojo.dto.UserDTO;
import com.orange.cloud.common.core.feign.user.pojo.evt.UserInfoEvt;
import com.orange.cloud.common.core.msg.Message;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "MemberFeignService",name = "oe-user-service", path = "/api-oe-user")
public interface UserFeignService {

    @PostMapping("/pri/user/addUser")
    Message<UserDTO> add(@RequestBody UserEvt user);

    @PostMapping("/pri/user/getByUserDetail")
    Message<UserDTO> getUserDetail(@RequestBody UserInfoEvt userInfoEvt);

    @PostMapping("/pri/user/getByUserDetail")
    Message<UserDTO> getUserDetail(@RequestBody Long userId);


}
